package com.scproject.scbef.service.study.politicsknowledge;

import com.scproject.dto.ResponseDto;
import com.scproject.scbef.pojo.PoliticsKnowledge;
import org.springframework.web.multipart.MultipartHttpServletRequest;

import javax.servlet.http.HttpServletRequest;

/**
 * @author LNL
 * @date 2021/5/25 19:31
 */
public interface PoliticsKnowLedgeService {
    /**
     * 获取所有党建知识
     * @return
     */
    ResponseDto getAllPoliticsKnowledge();


    /**
     * 删除党建知识
     * @param id
     * @param request
     * @return
     */
    ResponseDto deletePoliticsKnowledge(String id, HttpServletRequest request);


    /**
     * 添加党建知识
     * @param request
     * @return
     */
    ResponseDto insertPoliticsKnowledge(MultipartHttpServletRequest request);

    /**
     * 修改党建知识
     * @param politicsKnowledge
     * @param request
     * @return
     */
    ResponseDto updatePoliticsKnowledge(PoliticsKnowledge politicsKnowledge, HttpServletRequest request);

}
